<!-- imports -->
<%@page import="java.sql.Date"%>
<%@page import="www.nomina.controller.beans.usuarioBean"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page language="java"%>
<%
	if (request.getSession().getAttribute("sesion") == null) {
		request.getSession().setAttribute("error", 1);
		response.sendRedirect("CLOSE");
	} else {
		usuarioBean usuario = (usuarioBean) request.getSession()
				.getAttribute("sesion");
%>
<!DOCTYPE>
<html>
<head>
<title>SISTEMA DE NOMINAS</title>
<!-- Metadatos-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="">

<!-- Main Stylesheet -->
<link rel="stylesheet" type="text/css" href="CSS/lungo.css">
<link rel="stylesheet" type="text/css" href="CSS/lungo.theme.css">
<link rel="stylesheet" type="text/css" href="CSS/lungo.icon.css">

</head>

<body>

	<!-- Menu -->
	<%@ include file='../menu.jsp'%>
	<section id="splash" data-transition="slide" class="show">
		<article class="active splash">
			<img src="http://cdn.tapquo.com/lungo/logo.png" class="logo">
			<div class="form">
			
					<fieldset>
				
					<table>
						<tr>
							<td><h1>Administra datos de empresa.</h1></td>
						</tr>
						<tr>
							<td><small>Ingresa tu contraseña para efectuar cambios!</small></td>
						</tr>
						<tr>
						<th>
						<%
							String msjError = (String) request.getAttribute("mensaje");
								if (msjError != null) {
						%>
						<h3><%=msjError%></h3> <%
 								}
						 %>
						</th>
					</tr>
					</table>
				
				</fieldset>
			
				<form action='cuentaSVR' method='post'>
					<input type='hidden' name='dispatch' value='7' />

					<fieldset data-icon="edit">
						<span class="icon edit"></span>
						<input type="text" name="rfc_empresa" placeholder="RFC EMPRESA" required="required"
							onfocus="onfocus" autocomplete="off" value="<%=usuario.getRfc_empresa() %>">
					</fieldset>
					<fieldset data-icon="edit">
						<span class="icon edit"></span>
						<input type="text" name="razon_social" placeholder="RAZON SOCIAL" required="required"
							autocomplete="off" value="<%=usuario.getRazon_social() %>">
					</fieldset>
					<fieldset data-icon="edit">
						<span class="icon edit"></span>
						<input type="text" name="regimen_fiscal" placeholder="REGIMEN FISCAL" required="required"
							autocomplete="off" value="<%=usuario.getRegimen_fiscal() %>">
					</fieldset>
					<fieldset data-icon="edit">
						<span class="icon edit"></span>
						<input type="text" name="registro_patronal" placeholder="REGISTRO PATRONAL" 
						autocomplete="off"  value="<%=usuario.getRegistro_patronal() %>">
					</fieldset>
					<fieldset data-icon="edit">
						<span class="icon edit"></span>
						<input type="text" name="colonia" placeholder="COLONIA"	required="required" 
						autocomplete="off" value="<%=usuario.getColonia() %>">
					</fieldset>
					<fieldset data-icon="edit">
						<span class="icon edit"></span> 
						<input type="text" name="calle" placeholder="CALLE"	required="required" 
						autocomplete="off" value="<%=usuario.getCalle() %>">
					</fieldset>
					<fieldset class="radius-top" data-icon="edit">
						<span class="icon edit"></span>
						<input type="text" name="numero" placeholder="NUMERO" required="required"
							autocomplete="off" value="<%=usuario.getNumero() %>">
					</fieldset>
					<fieldset data-icon="edit">
						<span class="icon edit"></span>
						<input type="text" name="cp" placeholder="CODIGO POSTAL" required="required"
							autocomplete="off" value="<%=usuario.getCp() %>" pattern="[0-9]{5}" maxlength="5">
					</fieldset>
					<fieldset data-icon="edit">
						<span class="icon edit"></span>
						<input type="text" name="pais" placeholder="PAIS" required="required"
							autocomplete="off" value="<%=usuario.getPais() %>">
					</fieldset>
					<fieldset data-icon="edit">
						<span class="icon edit"></span> 
						<input type="text" name="estado" placeholder="ESTADO" required="required" 
						autocomplete="off" value="<%=usuario.getEstado() %>">
					</fieldset>
					<fieldset data-icon="edit">
						<span class="icon edit"></span>
						<input type="text" name="municipio" placeholder="MUNICIPIO" required="required" 
						autocomplete="off" value="<%=usuario.getMunicipio() %>">
					</fieldset>
					<fieldset data-icon="edit">
						<span class="icon edit"></span> 
						<input type="tel" name="tel1" placeholder="TELEFONO 1"	required="required" 
						autocomplete="off" value="<%=usuario.getTelefono1() %>"  pattern="[0-9]{10}" maxlength="10">
					</fieldset>
					<fieldset data-icon="edit">
						<span class="icon edit"></span>
						<input type="tel" name="tel2" placeholder="TELEFONO 2"autocomplete="off"
						 value="<%=usuario.getTelefono2() %>" pattern="[0-9]{10}" maxlength="10">
					</fieldset>
					<fieldset data-icon="edit">
						<span class="icon edit"></span>
						<input type="file" name="pfx" placeholder="PFX" required="required"
							autocomplete="off" value="<%=usuario.getPfx()%>">
					</fieldset>
					<fieldset data-icon="edit">
						<span class="icon edit"></span>
						<input type="password" name="passPfx" placeholder="PASSWORD PFX" required="required"
							autocomplete="off" value="<%=usuario.getPassPFX() %>">
					</fieldset>
					<fieldset data-icon="edit">
						<span class="icon edit"></span>
						<input type="password" name="secreta" placeholder="PASSWORD" required="required"
							autocomplete="off">
					</fieldset>
					<input type="submit" value="ENVIAR">
				</form>
				<button class="anchor cancel" data-icon="lock"
					onclick="document.getElementById('configuracion').submit();">
					<span class="icon arrow-left"></span><abbr>VOLVER</abbr>
				</button>
				<span><small>Copyright (C) 2014 - </small><span
					class="text bold">Nominas</span></span>
			</div>
		</article>
	</section>
</body>
</html>
<%
	}
%>